package main

import "fmt"

/*
* Author: JacksonCoder
* CreateTime: 2025/5/20
 */

type A1 interface{
	Print()
}

type BB interface{
	A1
	PrintBB()
}

type CC interface{
	A1
	PrintCC()
}

type CI interface{
	BB
	CC
	PrintC()
}

type C1 struct{
	Age int
}

func (p C1) Print(){
	// 实现 Running 方法
	fmt.Println("A1: ", p.Age)
}

func (p C1) PrintBB(){
	// 实现 Running 方法
	fmt.Println("BB:", p.Age)
}

func (p C1) PrintCC(){
	// 实现 Running 方法
	fmt.Println("CC: ", p.Age)
}

func (p C1) PrintC(){
	fmt.Println("CI: ",p.Age)
}

func main(){
	var c C1
	var ci CI
	ci = c
	ci.Print()
	ci.PrintBB()
}